package com.gabry.goodkill.protocol

/**
 * Created by gabry on 2018/9/20 15:29
 */
trait Command

/**
* 抢购请求，用户每点击一次抢购，会有一次请求
  * @param userKillId 用户ID对应的抢购ID
  * @param activityId 此次抢购活动的ID
  */
case class Purchase(userKillId:USER_KILL_ID_TYPE,activityId:ACTIVITY_ID_TYPE) extends Command

/**
  * 收到抢购请求后，下订单命令
  * @param userKillId 用户ID对应的抢购ID
  * @param activityId 此次抢购活动的ID
  * @param goodKillId 商品ID对应的抢购ID
  */
case class PlaceOrder(userKillId:USER_KILL_ID_TYPE,activityId:ACTIVITY_ID_TYPE,goodKillId:GOOD_KILL_ID_TYPE) extends Command
